package com.ruoyi.chat.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 群消息对象 chat_group_message
 *

 * @date 2023-07-23
 */
public class GroupMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 群id */
    @Excel(name = "群id")
    private Long groupId;

    /** 发信息的用户id */
    @Excel(name = "发信息的用户id")
    private Long userIdPash;

    /** 文本内容 */
    @Excel(name = "文本内容")
    private String msText;

    /** 链接类消息 */
    @Excel(name = "链接类消息")
    private String messageLink;

    /** 图片类消息 */
    @Excel(name = "图片类消息")
    private String messageImage;

    /** 是否撤回 */
    @Excel(name = "是否撤回")
    private String recalled;

    public String getRecalled() {
        return recalled;
    }

    public void setRecalled(String recalled) {
        this.recalled = recalled;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setGroupId(Long groupId)
    {
        this.groupId = groupId;
    }

    public Long getGroupId()
    {
        return groupId;
    }
    public void setUserIdPash(Long userIdPash)
    {
        this.userIdPash = userIdPash;
    }

    public Long getUserIdPash()
    {
        return userIdPash;
    }
    public void setMsText(String msText)
    {
        this.msText = msText;
    }

    public String getMsText()
    {
        return msText;
    }
    public void setMessageLink(String messageLink)
    {
        this.messageLink = messageLink;
    }

    public String getMessageLink()
    {
        return messageLink;
    }
    public void setMessageImage(String messageImage)
    {
        this.messageImage = messageImage;
    }

    public String getMessageImage()
    {
        return messageImage;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("groupId", getGroupId())
            .append("userIdPash", getUserIdPash())
            .append("msText", getMsText())
            .append("messageLink", getMessageLink())
            .append("messageImage", getMessageImage())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
